package com.chinairi.mall.dao;

import com.chinairi.mall.controller.viewobject.CollectVO;
import com.chinairi.mall.model.Collect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收藏夹表 Mapper 接口
 * </p>
 *
 * @author Webgasd
 * @since 2020-09-05
 */
public interface CollectMapper extends BaseMapper<Collect> {
    /**
     * 获取所有商品收藏夹数据
     *
     * @param search
     * @return
     */
    List<CollectVO> getListGoods(@Param("search") Collect search);

    /**
     * 获取店铺收藏夹列表
     * @param search
     * @return
     */
    List<CollectVO> getListStore(@Param("search") Collect search);

    /**
     * 判重
     * @param collect
     * @return
     */
    Integer selectCollectNum(@Param("collect") Collect collect);
}
